package com.demo.source;

import java.net.URL;

import com.csair.cbd.ccs.services.web.CBDCCSWebServiceHttpBindingStub;
import com.csair.cbd.ccs.services.web.CBDCCSWebServicePortType;

public class GetPortType {
	private static final 
	String url = "http://10.109.17.20:7777/CBDCCSWebService/services/CBDCCSWebService";
	//http://10.103.99.13:8180/CBDCCSWebService/services/CBDCCSWebService

	public CBDCCSWebServicePortType getPortType() {
		try {
			CBDCCSWebServicePortType wtsspt = (CBDCCSWebServicePortType) new CBDCCSWebServiceHttpBindingStub(
					new URL(url), null);
			return wtsspt;
		} catch (Exception e) {
			e.printStackTrace();
		}
		return null;
	}
	
	
}

